home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / csrc1.arc / DIR.HLP < prev    next >
Text File  |  1989-07-27  |  3KB  |  67 lines

  1.     DIR                 List directory
  2.     ---                 ---- ---------
  3.     DIR [options] directory-spec [other dir-spec]
  4.     e.g.,  DIR >STUFF.DIR -elp LB:[1,1] SY:[305,100]
  5.        or  DIR    DIR *.C        DIR SOR  ,etc.
  6.        or  DIR [1,2]*.HLP
  7.  
  8.     Normally files are listed in alphabetical order, in 4 columns.
  9.      
  10.     Its options are:
  11.         -1                      Print in 1 column format
  12.         -d                      Don't sort.
  13.         -e                      Sort by extent, then name.
  14.         -l                      Print in long format
  15.         -p                      Include protection in -l format
  16.         -t                      Include totals in -l format
  17.  
  18.         -v                      Include version numbers
  19.                 Only the highest version is shown unless
  20.                 -v or -d is specified.
  21.  
  22.     Following the device/UIC, you may also give a file-name selector.
  23.     (This works just like the /SE switch in SRD).
  24.  
  25.             This allows file names to selected based on a sub-set
  26.             string  match.  The selection is satisfied if the end of the
  27.             selector field is reached without  finding  a  character  that
  28.             does  not  match.  The filename is considered to be a string
  29.             of 1 to 13 characters:   0  to  12  characters  of  name,  a
  30.             period, and 0 to 3 characters of type, and semi-colon.
  31.         The selector is automatically terminated with the string: "*;".
  32.  
  33.         The filename and the
  34.             specified template are compared one character at a time, until
  35.         the semicolons in each match. A semicolon may be explicitly
  36.         given as part of the selector; this will be used as the 
  37.         termination  point. If
  38.             the  current  template  character  is  a "%" or "?", it will
  39.             match exactly one character of the filename.  If the current
  40.             template   character  is  "*",  it  will  match  0  or  more
  41.             characters in the filename.
  42.             More than one "*" in a row is treated as only one.
  43.         For example:
  44.  
  45.                       DIR M*    or    DIR M
  46.  
  47.             This selects all files with "M" as the  first  character  in
  48.             the name regardless of the rest of the name.
  49.  
  50.                       DIR M???X.*
  51.  
  52.             This selects any file with a name starting with  "M"  having
  53.             any  characters  in  2nd,  3rd  and  4th  position, X in 5th
  54.             position.
  55.  
  56.                       DIR *SRD*
  57.  
  58.             This  selects  all  files  having  "SRD"  anywhere  in   the
  59.             filename,   such  as  :   SRD.MAC,  SRDATA.MAC,  TKBSRD.CMD,
  60.             ABCC.SRD, etc.
  61.  
  62.             DIR *.C
  63.         Will select ?.C, ?.CMD, ?.CDE, etc.
  64.  
  65.             DIR *.C;
  66.         Will select ?.C files, but not ?.CMD, etc.
  67.